package c.d.a.a.d;

import c.d.a.a.c.f;
import c.d.a.a.f.a.c;
import c.d.a.a.f.b.e;

/* compiled from: DefaultFillFormatter */
public class b {
    public float a(e eVar, c cVar) {
        float yChartMax = cVar.getYChartMax();
        float yChartMin = cVar.getYChartMin();
        f lineData = cVar.getLineData();
        if (eVar.t() > 0.0f && eVar.R() < 0.0f) {
            return 0.0f;
        }
        if (lineData.a > 0.0f) {
            yChartMax = 0.0f;
        }
        if (lineData.b < 0.0f) {
            yChartMin = 0.0f;
        }
        return eVar.R() >= 0.0f ? yChartMin : yChartMax;
    }
}
